import RootToast from 'react-native-root-toast';

const Toast = {
  show: (message, textStyle = {}) =>
    RootToast.show(message, {
      duration: RootToast.durations.LONG,
      position: RootToast.positions.CENTER,
      animation: true,
      hideOnPress: true,
      textStyle: textStyle,
    }),
};

export default Toast;
